package com.sskj.lib.util;

public class EncodeUtils {
    public static String encodeAES(String content) {
        while (content.length() % 16 != 0) {
            content = content + " ";
        }
        return RxEncryptTool.encryptAES(content, "box@test+aes4587");
    }

    public static String decryptAES(String content) {
        return RxEncryptTool.decryptAES(content, "box@test+aes4587");
    }
    public static String encodeAES2B(String content) {
        while (content.length() % 16 != 0) {
            content = content + " ";
        }
        return RxEncryptTool.encryptAES(content, "box@test+aes4587").replace("+","%2B");
    }

}
